package com.magnificent.atlantis.client.ui.planner.panels.alert;

import com.magnificent.helpers.swing.TableHelper;
import com.magnificent.commons.ui.table.CommonTable;

import javax.swing.*;
import java.awt.*;

/**
 * User: Babanin
 * Date: 20.02.2009
 * Time: 15:08:52
 */
public class AlertsTable extends CommonTable {

    public AlertsTable(AlertsTableModel alertsTableModel) {
        super(alertsTableModel);
        setGridColor(Color.BLACK);
        setDefaultRenderer(Object.class, new AlertsTableRenderer());

        setSelectionMode(ListSelectionModel.SINGLE_SELECTION);

        TableHelper.setFixedColumnSize(this, 1, 70);
        TableHelper.setFixedColumnSize(this, 2, 70);
        TableHelper.setFixedColumnSize(this, 3, 70);
    }
}
